using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace DbDiffUtils
{
	/// <summary>
	/// Summary description for frmCode.
	/// </summary>
	public class frmCode : System.Windows.Forms.Form
	{
		private string _compareOptionsCode;
		private string _optionsFormCode;
		private string _errorDatasetCode;
		private string _doc;

		private System.Windows.Forms.Button btnClose;
		private System.Windows.Forms.TabControl tabControlCode;
		private System.Windows.Forms.TabPage tabPageCompareOptionsCode;
		private System.Windows.Forms.TextBox txtCompareOptionsCode;
		private System.Windows.Forms.TabPage tabPageOptionsFormCode;
		private System.Windows.Forms.TextBox txtOptionsFormCode;
		private System.Windows.Forms.TabPage tabPageErrorDataset;
		private System.Windows.Forms.TextBox txtErrorDatasetCode;
		private System.Windows.Forms.TabPage tabPageDoc;
		private System.Windows.Forms.TextBox txtDoc;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public frmCode(string compareOptionsCode, string optionsFormCode, string errorDatasetCode, string doc)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
			_compareOptionsCode = compareOptionsCode;
			_optionsFormCode = optionsFormCode;
			_errorDatasetCode = errorDatasetCode;
			_doc = doc;
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.btnClose = new System.Windows.Forms.Button();
			this.tabControlCode = new System.Windows.Forms.TabControl();
			this.tabPageCompareOptionsCode = new System.Windows.Forms.TabPage();
			this.txtCompareOptionsCode = new System.Windows.Forms.TextBox();
			this.tabPageOptionsFormCode = new System.Windows.Forms.TabPage();
			this.txtOptionsFormCode = new System.Windows.Forms.TextBox();
			this.tabPageErrorDataset = new System.Windows.Forms.TabPage();
			this.txtErrorDatasetCode = new System.Windows.Forms.TextBox();
			this.tabPageDoc = new System.Windows.Forms.TabPage();
			this.txtDoc = new System.Windows.Forms.TextBox();
			this.tabControlCode.SuspendLayout();
			this.tabPageCompareOptionsCode.SuspendLayout();
			this.tabPageOptionsFormCode.SuspendLayout();
			this.tabPageErrorDataset.SuspendLayout();
			this.tabPageDoc.SuspendLayout();
			this.SuspendLayout();
			// 
			// btnClose
			// 
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnClose.Location = new System.Drawing.Point(752, 632);
			this.btnClose.Name = "btnClose";
			this.btnClose.TabIndex = 0;
			this.btnClose.Text = "Close";
			// 
			// tabControlCode
			// 
			this.tabControlCode.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.tabControlCode.Controls.Add(this.tabPageCompareOptionsCode);
			this.tabControlCode.Controls.Add(this.tabPageOptionsFormCode);
			this.tabControlCode.Controls.Add(this.tabPageErrorDataset);
			this.tabControlCode.Controls.Add(this.tabPageDoc);
			this.tabControlCode.Location = new System.Drawing.Point(8, 8);
			this.tabControlCode.Name = "tabControlCode";
			this.tabControlCode.SelectedIndex = 0;
			this.tabControlCode.Size = new System.Drawing.Size(816, 616);
			this.tabControlCode.TabIndex = 1;
			// 
			// tabPageCompareOptionsCode
			// 
			this.tabPageCompareOptionsCode.Controls.Add(this.txtCompareOptionsCode);
			this.tabPageCompareOptionsCode.Location = new System.Drawing.Point(4, 22);
			this.tabPageCompareOptionsCode.Name = "tabPageCompareOptionsCode";
			this.tabPageCompareOptionsCode.Size = new System.Drawing.Size(808, 590);
			this.tabPageCompareOptionsCode.TabIndex = 0;
			this.tabPageCompareOptionsCode.Text = "CompareOptions Code";
			// 
			// txtCompareOptionsCode
			// 
			this.txtCompareOptionsCode.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtCompareOptionsCode.Location = new System.Drawing.Point(0, 0);
			this.txtCompareOptionsCode.Multiline = true;
			this.txtCompareOptionsCode.Name = "txtCompareOptionsCode";
			this.txtCompareOptionsCode.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtCompareOptionsCode.Size = new System.Drawing.Size(808, 590);
			this.txtCompareOptionsCode.TabIndex = 0;
			this.txtCompareOptionsCode.Text = "";
			this.txtCompareOptionsCode.WordWrap = false;
			// 
			// tabPageOptionsFormCode
			// 
			this.tabPageOptionsFormCode.Controls.Add(this.txtOptionsFormCode);
			this.tabPageOptionsFormCode.Location = new System.Drawing.Point(4, 22);
			this.tabPageOptionsFormCode.Name = "tabPageOptionsFormCode";
			this.tabPageOptionsFormCode.Size = new System.Drawing.Size(808, 590);
			this.tabPageOptionsFormCode.TabIndex = 1;
			this.tabPageOptionsFormCode.Text = "OptionsForm Code";
			// 
			// txtOptionsFormCode
			// 
			this.txtOptionsFormCode.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtOptionsFormCode.Location = new System.Drawing.Point(0, 0);
			this.txtOptionsFormCode.Multiline = true;
			this.txtOptionsFormCode.Name = "txtOptionsFormCode";
			this.txtOptionsFormCode.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtOptionsFormCode.Size = new System.Drawing.Size(808, 590);
			this.txtOptionsFormCode.TabIndex = 1;
			this.txtOptionsFormCode.Text = "";
			this.txtOptionsFormCode.WordWrap = false;
			// 
			// tabPageErrorDataset
			// 
			this.tabPageErrorDataset.Controls.Add(this.txtErrorDatasetCode);
			this.tabPageErrorDataset.Location = new System.Drawing.Point(4, 22);
			this.tabPageErrorDataset.Name = "tabPageErrorDataset";
			this.tabPageErrorDataset.Size = new System.Drawing.Size(808, 590);
			this.tabPageErrorDataset.TabIndex = 2;
			this.tabPageErrorDataset.Text = "Error dataset (DatasetErrorMsg)";
			// 
			// txtErrorDatasetCode
			// 
			this.txtErrorDatasetCode.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtErrorDatasetCode.Location = new System.Drawing.Point(0, 0);
			this.txtErrorDatasetCode.Multiline = true;
			this.txtErrorDatasetCode.Name = "txtErrorDatasetCode";
			this.txtErrorDatasetCode.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtErrorDatasetCode.Size = new System.Drawing.Size(808, 590);
			this.txtErrorDatasetCode.TabIndex = 2;
			this.txtErrorDatasetCode.Text = "";
			this.txtErrorDatasetCode.WordWrap = false;
			// 
			// tabPageDoc
			// 
			this.tabPageDoc.Controls.Add(this.txtDoc);
			this.tabPageDoc.Location = new System.Drawing.Point(4, 22);
			this.tabPageDoc.Name = "tabPageDoc";
			this.tabPageDoc.Size = new System.Drawing.Size(808, 590);
			this.tabPageDoc.TabIndex = 3;
			this.tabPageDoc.Text = "Doc";
			// 
			// txtDoc
			// 
			this.txtDoc.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtDoc.Location = new System.Drawing.Point(0, 0);
			this.txtDoc.Multiline = true;
			this.txtDoc.Name = "txtDoc";
			this.txtDoc.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.txtDoc.Size = new System.Drawing.Size(808, 590);
			this.txtDoc.TabIndex = 3;
			this.txtDoc.Text = "";
			this.txtDoc.WordWrap = false;
			// 
			// frmCode
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.CancelButton = this.btnClose;
			this.ClientSize = new System.Drawing.Size(832, 661);
			this.Controls.Add(this.tabControlCode);
			this.Controls.Add(this.btnClose);
			this.MinimizeBox = false;
			this.Name = "frmCode";
			this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Generated code";
			this.Load += new System.EventHandler(this.frmCode_Load);
			this.tabControlCode.ResumeLayout(false);
			this.tabPageCompareOptionsCode.ResumeLayout(false);
			this.tabPageOptionsFormCode.ResumeLayout(false);
			this.tabPageErrorDataset.ResumeLayout(false);
			this.tabPageDoc.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void frmCode_Load(object sender, System.EventArgs e)
		{
			txtCompareOptionsCode.Text = _compareOptionsCode;
			txtErrorDatasetCode.Text = _errorDatasetCode;
			txtOptionsFormCode.Text = _optionsFormCode;
			txtDoc.Text = _doc;
		}
	}
}
